package com.ian.homework;

public class GobangPlayer {
    private String strUsername;
    private char baColor;

    public GobangPlayer() {
    }

    public void setUsername(String username) {
        this.strUsername = username;
    }

    public void setColor(char color) {
        this.baColor = color;
    }

    public GobangPlayer(String strUsername, char baColor) {
        this.strUsername = strUsername;
        this.baColor = baColor;
        System.out.println("玩家名字:" + strUsername + "使用" + baColor + "颜色的棋子加入游戏");
    }

    public String getUsername() {
        return strUsername;
    }

    public char getColor() {
        return baColor;
    }
}
